<%--
    Document   : index
    Created on : 13 Dec, 2010, 12:20:26 PM
    Author     : soft
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib  prefix="s" uri="/struts-tags" %>
<%@taglib  prefix="sj" uri="/struts-jquery-tags" %>
<%@taglib  prefix="sjg" uri="/struts-jquery-grid-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <sj:head jqueryui="true" jquerytheme="cupertino"  locale="es"></sj:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>School Management Page</title>
    </head>
    <body>
        <s:url id="editurl" action="nedit"/>
        <s:url  id="remoteurl" action="ntable"/>

        <sjg:grid
            id="gridtable"
            caption="Customer Examples"
            dataType="json"
            href="%{remoteurl}"
            pager="true"
            gridModel="gridModel"
            rowList="10,15,20"
            rowNum="15"
            rownumbers="true"
            editurl="%{editurl}"
            navigator="true"
            navigatorSearch="true"
            navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
            navigatorRefresh="true"
            navigatorDelete="true"

            >
            <sjg:gridColumn name="id" index="id" title="ID" formatter="integer" sortable="false" key="true" search="true" searchoptions="{sopt:['eq','ne','lt','gt']}"/>
            <sjg:gridColumn name="name" index="name" title="Name" sortable="true" search="false"
                            editable="true"
                            edittype="select"
                            editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}"/>
        </sjg:grid>
    </body>
</html>
